package com.ttdev.mmms.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * 管理员实体类
 */
@Data
@AllArgsConstructor
@TableName("admin")
public class Admin {

    // 管理员编号
    @TableId(value = "admin_id",type = IdType.AUTO)
    private Integer id;

    // 姓名
    @TableField(value = "username")
    private String username;

    // 密码
    @TableField(value = "password")
    private String password;
}
